<?php
session_start();
$firstname = $_SESSION['firstName'];
$isAdmin = $_SESSION['isAdmin'];

if ($isAdmin == '') {
    header('Location: http://localhost/Rotaract/index.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>Rotaract DLSU</title>
        <meta http-equiv="Content-Type" content="text/html"/>
        <meta name="robots" content="index,follow"/>
        <meta name="distribution" content="global"/>
        <meta name="description" content=""/>
        <meta name="keywords" content=""/>
        <link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
        <link href="bannerstyle.css" rel="stylesheet"  type="text/css" media="screen" />
        <script type="text/javascript">var _siteRoot='index.html',_root='index.html';</script>
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/scripts.js"></script>
        <script type="text/javascript" src="javascript/functions.js"></script>

        <!--        hide at the start of the page the button tab of Agenda, Announcement, Activites and Officer of the Month-->
        <script type="text/javascript">
            $(document).ready(function(){
                $("#fAgenda").hide();
            });
            $(document).ready(function(){
                $("#fAnnouncement").hide();
            });
            $(document).ready(function(){
                $("#fActivities").hide();               
            });
            $(document).ready(function(){
                $("#fOOTM").hide();               
            });
        </script>

    </head>
    <body>
        <div id="wholeBody">
            <div id="container">
                <div id="logotip">
                    <h1 id="logo"><a href="#" title="Company Title - return to the homepage">Company Logotip</a></h1>
                </div>
                <div id="header">

                    <div class="wrap">
                        <!--                        code for the sliding images at the top of the page-->
                        <div id="slide-holder">
                            <div id="slide-runner">
                                <a href=""><img id="slide-img-1" src="images/8.jpg" class="slide" alt="" /></a>
                                <a href=""><img id="slide-img-2" src="images/2.jpg" class="slide" alt="" /></a>
                                <a href=""><img id="slide-img-3" src="images/3.jpg" class="slide" alt="" /></a>
                                <a href=""><img id="slide-img-4" src="images/4.jpg" class="slide" alt="" /></a>
                                <a href=""><img id="slide-img-5" src="images/5.jpg" class="slide" alt="" /></a>
                                <a href=""><img id="slide-img-6" src="images/6.jpg" class="slide" alt="" /></a>
                                <a href=""><img id="slide-img-7" src="images/1.jpg" class="slide" alt="" /></a> 
                                <div id="slide-controls">
                                    <p id="slide-client" class="text"><strong>post: </strong><span></span></p>
                                    <p id="slide-desc" class="text"></p>
                                    <p id="slide-nav"></p>
                                </div>
                            </div>

                            <!--content featured gallery here -->
                        </div>
                        <!--                        description of the sliding images at the top of the page-->
                        <script type="text/javascript">
                            if(!window.slider) var slider={};slider.data=[{"id":"slide-img-1","client":"ROTARACT CLUB","desc":"GENERAL ASSEMBLY"},
                                {"id":"slide-img-2","client":"ROTARACT CLUB","desc":"NEGOSYONG ASENSO 2011"},
                                {"id":"slide-img-3","client":"ROTARACT CLUB","desc":"MEDICAL MISSION 2011"},
                                {"id":"slide-img-4","client":"ROTARACT CLUB","desc":"FELLOWSHIP :)"},
                                {"id":"slide-img-5","client":"FRIENDSHIP","desc":"MORE FUN IN ROTARACT CLUB"},
                                {"id":"slide-img-6","client":"ROTARACT CLUB","desc":"EAT AND RUN 2011"},
                                {"id":"slide-img-7","client":"ROTARACT CLUB","desc":"INTERNATIONAL COASTAL CLEAN UP"}];
                        </script>
                    </div>
                </div>
                <div id="main">
                    <iframe id="content" src ="Welcome.php" style="height: 100.7%"></iframe>
                </div>
                <div id="navigation" style="background-color: white; position:relative;width:260px;height: 65px 5px;margin-left: 553px;margin-top: -604px;">
                    <table height="603" width="120" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="182" bgcolor="#FFFFFF" class="main_nav2"><div id="heading1"></div>
                                <ul id="navlist">
                                    <img src="images/spacer.gif" height="1" />
                                    <!--                                    announcement tab-->
                                    <a href="RAC-Announcement.php" target="content" onmouseover="showfAnnouncement()" onmouseout="hidefAnnouncement()"><b>Announcements</b></a>
                                    <div id="fAnnouncement" onmouseover="showfAnnouncement()" onmouseout="hidefAnnouncement()">
                                        <img src="images/spacer.gif" height="1" />
                                        <div id="fAddAnnouncement">
                                            <a href="RAC-addAnnouncementUI.php" target="content">&nbsp;&nbsp;&nbsp;&raquo;&nbsp;Add Announcement</a>
                                        </div>
                                        <img src="images/spacer.gif" height="1" />
                                        <div id="fEditAnnouncement">
                                            <a href="RAC-editAnnouncementUI.php" target="content">&nbsp;&nbsp;&nbsp;&raquo;&nbsp;Edit Announcement</a>
                                        </div>
                                        <img src="images/spacer.gif" height="1" />
                                        <div id="fDeleteAnnouncement">
                                            <a href="RAC-deleteAnnouncementUI.php" target="content">&nbsp;&nbsp;&nbsp;&raquo;&nbsp;Delete Announcement</a>
                                        </div>
                                    </div>
                                    <img src="images/spacer.gif" height="1" />
                                    <!--                                    agenda tab-->
                                    <a href="RAC-Agenda.php" target="content" onmouseover="showfAgenda()" onmouseout="hidefAgenda()" onclick="fbuttonAgenda()"><b>Agenda</b></a>
                                    <div id="fAgenda" onmouseover="showfAgenda()" onmouseout="hidefAgenda()">
                                        <img src="images/spacer.gif" height="1" />
                                        <div id="fAddAgenda">
                                            <a href="RAC-addAgendaUI.php" target="content">&nbsp;&nbsp;&nbsp;&raquo;&nbsp; Add Agenda</a>
                                        </div>
                                        <img src="images/spacer.gif" height="1" />
                                        <div id="fEditAgenda">
                                            <a href="RAC-editAgendaUI.php" target="content">&nbsp;&nbsp;&nbsp;&raquo;&nbsp;Edit Agenda</a>
                                        </div>
                                        <img src="images/spacer.gif" height="1" />
                                        <div id="fDeleteAgenda">
                                            <a href="RAC-deleteAgendaUI.php" target="content">&nbsp;&nbsp;&nbsp;&raquo;&nbsp;Delete Agenda</a>
                                        </div>
                                    </div>
                                    <img src="images/spacer.gif" height="1" />
                                    <!--                                    activity tab-->
                                    <a href="RAC-Activity.php" target="content" onmouseover="showfActivities()" onmouseout="hidefActivities()"><b>Activities</b></a>
                                    <div id="fActivities" onmouseover="showfActivities()" onmouseout="hidefActivities()">
                                        <img src="images/spacer.gif" height="1" />
                                        <div id="fAddActivities">
                                            <a href="RAC-addActivityUI.php" target="content">&nbsp;&nbsp;&nbsp;&raquo;&nbsp;Add Activities</a>
                                        </div>
                                        <img src="images/spacer.gif" height="1" />
                                        <div id="fEditActivities">
                                            <a href="RAC-editActivityUI.php" target="content">&nbsp;&nbsp;&nbsp;&raquo;&nbsp;Edit Activities</a>
                                        </div>
                                        <img src="images/spacer.gif" height="1" />
                                        <div id="fDeleteActivities">
                                            <a href="RAC-deleteActivityUI.php" target="content">&nbsp;&nbsp;&nbsp;&raquo;&nbsp;Delete Activities</a>
                                        </div>
                                    </div>
                                    <img src="images/spacer.gif" height="1" />
                                    <!--                                    offcer of the month tab-->
                                    <a href="RAC-OOTM.php" target="content" onmouseover="showfOOTM()" onmouseout="hidefOOTM()"><b>Officer of the Month</b></a>
                                    <div id="fOOTM" onmouseover="showfOOTM()" onmouseout="hidefOOTM()">
                                        <img src="images/spacer.gif" height="1" />
                                        <?
                                        if ($_SESSION['isAdmin'] == 1) {
                                            ?>
                                            <div id="fAddOOTM">
                                                <a href="RAC-addOOTMUI.php" target="content">&nbsp;&nbsp;&nbsp;&raquo;&nbsp;Add OOTM</a>
                                            </div>
                                            <img src="images/spacer.gif" height="1" />
                                            <div id="fEditOOTM">
                                                <a href="RAC-editOOTMUI.php" target="content">&nbsp;&nbsp;&nbsp;&raquo;&nbsp;Edit OOTM</a>
                                            </div>
                                            <img src="images/spacer.gif" height="1" />
                                            <div id="fDeleteOOTM">
                                                <a href="RAC-deleteOOTMUI.php" target="content">&nbsp;&nbsp;&nbsp;&raquo;&nbsp;Delete OOTM</a>
                                            </div>
                                            <?
                                        }
                                        ?>
                                    </div>                                    
                                    <img src="images/spacer.gif" height="1" />
                                    <!--                                    upload tab-->
                                    <a href="RAC-UploadUI.php" target="content"><b>Upload</b></a> 
                                    <img src="images/spacer.gif" height="1" />
                                    <!--                                    download-->
                                    <a href="RAC-Download.php" target="content"><b>Download</b></a>
                                    <img src="images/spacer.gif" height="1" />
                                    <?
                                    if ($_SESSION['isAdmin'] == 1) {
                                        ?>
                                        <!--                                    delete user tab <for EB>-->
                                        <a href="RAC-DeleteUser.php" target="content"><b>Delete User</b></a>
                                        <img src="images/spacer.gif" height="1" />
                                        <?
                                    }
                                    ?>

                                    <?
                                    if ($_SESSION['isAdmin'] == 1) {
                                        ?>
                                        <!--                                        registration tab-->
                                        <a href="RAC-RegistrationUI.php" target="content"><b>Registration</b></a>
                                        <img src="images/spacer.gif" height="1" />
                                        <?
                                    }
                                    ?>
                                    <!--                                    update username tab-->
                                    <a href="RAC-UpdateUsernameUI.php" target="content"><b>Change Username</b></a>
                                    <img src="images/spacer.gif" height="1" />
                                    <!--                                    update password tab-->
                                    <a href="RAC-UpdatePasswordUI.php" target="content"><b>Change Password</b></a>
                                    <img src="images/spacer.gif" height="1" />
                                    <!--                                    logout tab-->
                                    <a href="logout.php"><b>Log out</b></a>
                                    <img src="images/spacer.gif" height="1" />                        
                                </ul>

                                <div id="main_text">
                                    <h3>Hello, <?= $_SESSION['userName'] ?>!</h3>
                                    <br>
                                        <p><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/pages/Rotaract-Club-of-De-La-Salle-University-Manila/170782272982240"
                                                   scrolling="no" frameborder="0"
                                                   style="border:none; width:250px; height:100px"></iframe></p>
                                        <p id="head_main_text">This club is an internationally recognized socio-civic non-profit, non-sectarian, non-political organization open to all bona fide students of DLSU under 30 years of age.</p>

                                        </td>
                                        </tr>

                                        </table>
                                </div>
                                <div id="footer">Copyright &copy; Rotaract-dlsu.com.
                                    <br />
                                    All rights reserved. Design by Team Cupcakes.<a style="color:#FFF; text-decoration:none;" href="http://www.stylishtemplate.com"></a>
                                </div>
                                </div>
                                </div>
                                </body>
                                </html>
